Compact Labeling Scheme for Ancestor Queries

نویسندگان

  • Serge Abiteboul
  • Stephen Alstrup
  • Haim Kaplan
  • Tova Milo
  • Theis Rauhe
چکیده

We consider the following problem. Given a rooted tree T , label the nodes of T in the most compact way such that given the labels of two nodes u and v one can determine in constant time, by looking only at the labels, if u is ancestor of v. The best known labeling scheme is rather straightforward and uses labels of length at most 2 log2 n bits each, where n is the number of nodes in the tree. Our main result in this paper is a labeling scheme with maximum label length log2 n + O( √ log n). Our motivation for studying this problem is enhancing the performance of web search engines. In the context of this application each indexed document is a tree and the labels of all trees are maintained in main memory. Therefore even small improvements in the maximum label length are important.

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

An Improved Prefix Labeling Scheme: A Binary String Approach for Dynamic Ordered XML

A number of labeling schemes have been designed to facilitate the query of XML, based on which the ancestor-descendant relationship between any two nodes can be determined quickly. Another important feature of XML is that the elements in XML are intrinsically ordered. However the label update cost is high based on the present labeling schemes. They have to re-label the existing nodes or re-calc...

متن کامل

Informative Labeling Schemes for the Least Common Ancestor Problem

We address the problem of labeling the nodes of a tree such that one can determine the identifier of the least common ancestor of any two nodes by looking only at their labels. This problem has application in routing and in distributed computing in peer-to-peer networks. A labeling scheme using Θ(log n)-bit labels has been presented by Peleg. By engineering this scheme and a new one due to the ...

متن کامل

Fast Self-stabilizing Minimum Spanning Tree Construction - Using Compact Nearest Common Ancestor Labeling Scheme

We present a novel self-stabilizing algorithm for minimum spanning tree (MST) construction. The space complexity of our solution is O(log n) bits and it converges in O(n) rounds. Thus, this algorithm improves the convergence time of all previously known self-stabilizing asynchronous MST algorithms by a multiplicative factor Θ(n), to the price of increasing the best known space complexity by a f...

متن کامل

TJP: A Modified Twig Join Algorithm Based on the Pri-order Labeling Scheme

XML exploits a tree-structured data model for representing data, and XML queries specify patterns of selection predicates on multiple elements related by a tree structure. Finding all occurrences of such a twig pattern in an XML database is a core operation for XML query processing. A lot of algorithms have been proposed to process to XML twig pattern query based-on region labeling scheme, whic...

متن کامل

Localized and Compact Data-Structure for Comparability Graphs

We show that every comparability graph of any two-dimensional poset over n elements (a.k.a. permutation graph) can be preprocessed in O(n) time, if two linear extensions of the poset are given, to produce an O(n) space data-structure supporting distance queries in constant time. The data-structure is localized and given as a distance labeling, that is each vertex receives a label of O(log n) bi...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

برای دانلود متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

عنوان ژورنال:
  • SIAM J. Comput.

دوره 35  شماره 

صفحات  -

تاریخ انتشار 2006